package com.eric.seo;

import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.Properties;

public class SEODirectives {
	
	public int OUT_LINKS_LIMIT;
	
	public int DESCRIPTION_LENGTH;
	
	public int TITLE_LENGTH;
	
	public SEODirectives () {
		Properties p = new Properties();
		try {
			p.load(new FileInputStream(new File("./SEODirectives")));
		} catch (FileNotFoundException e) {
			e.printStackTrace();
		} catch (IOException e) {
			e.printStackTrace();
		}
		
		OUT_LINKS_LIMIT = Integer.parseInt(p.getProperty("outlinks_limit"));
		
		DESCRIPTION_LENGTH = Integer.parseInt(p.getProperty("description_length"));
		
		TITLE_LENGTH = Integer.parseInt(p.getProperty("title_length"));
	}
	
	public static void main (String args[]) {
		new SEODirectives();
	}

	
	

	

	 
}
